package com.firstcare.android_dylibrary.bean;

import com.alibaba.fastjson.JSONObject;
import com.firstcare.android_dylibrary.DYApplication;
import com.firstcare.android_dylibrary.bean.base.BaseModelProxy;
import com.firstcare.android_dylibrary.network.URLSet;
import com.firstcare.android_dylibrary.network.request.DYRequest;
import com.rdxer.xxlibrary.HTTPUtils.listener.ErrorListener;
import com.rdxer.xxlibrary.HTTPUtils.listener.FailedListener;
import com.rdxer.xxlibrary.HTTPUtils.listener.OKListener;

/**
 * Created by chenyichao on 2016/7/4.
 */
public class TongAlarmProxy extends BaseModelProxy<TongAlarm> {
    public static void getTongAlarmList(final OKListener<Object> okListener, FailedListener failedListener, ErrorListener errorListener){
        JSONObject jsonObject=new JSONObject();
        jsonObject.put("id","222");
        DYRequest<Object> request = new DYRequest<Object>(URLSet.getProjectExcel, jsonObject, okListener,failedListener,errorListener){
            @Override
            protected Object getTargetData(JSONObject response) throws Exception {
                return response;
            }
        };
        DYApplication.getShared().getApi().addToRequestQueue(request);
    }
}
